Skip to content

Code editor - #72

Open
jtoman wants to merge 21 commits into
masterfrom
jtoman/code-munger
Open

Code editor#72
jtoman wants to merge 21 commits into
masterfrom
jtoman/code-munger

Conversation

@jtoman

@jtoman jtoman commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Prototype for editor agent to allow the cvl author to request (limited) changes to the source code to work around prover limitations (unstructured/custom storage, refactoring, etc.)

Gated with a judge agent as usual.

@jtoman
jtoman marked this pull request as ready for review July 17, 2026 05:10
@jtoman
jtoman requested a review from shellygr July 17, 2026 05:11

@shellygr shellygr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we include edits in the final report? I missed it here

Comment thread composer/spec/source/munge/compile_check.py
Comment thread composer/spec/source/munge/edit_oracle.py Outdated
Comment thread composer/spec/source/munge/edit_oracle.py Outdated
Comment thread composer/spec/source/munge/munge_agent.py
Comment thread composer/spec/source/author.py Outdated
Comment thread composer/templates/munge_editor_system.j2 Outdated
Comment thread composer/templates/munge_feedback_system.j2
Comment thread composer/templates/munge_feedback_system.j2 Outdated
Comment thread composer/templates/munge_feedback_system.j2 Outdated
Comment thread composer/templates/property_generation_system_prompt.j2
Comment thread composer/spec/source/author.py Outdated
Comment thread composer/spec/source/munge/compile_check.py
Comment thread composer/spec/source/munge/edit_oracle.py Outdated
Comment thread composer/spec/source/munge/munge_agent.py
Comment thread composer/spec/source/munge/edit_oracle.py Outdated
Comment thread composer/templates/munge_charter.j2 Outdated
Comment thread composer/templates/munge_editor_system.j2 Outdated
Comment thread composer/templates/munge_feedback_system.j2 Outdated
Comment thread composer/templates/property_generation_system_prompt.j2
tool_call_id=tool_call_id, content=result.result_str,
prover_link=result.link, validations=stamper(state),
prover_link=result.link,
validations=stamper(state, state["version_history"]),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is where we include the version history (which implicitly includes the vfs).

Clarifying what I meant around arithmetic reverts. Removes the migration
oracle, it wasn't sound without a full agent, and that was deemed too
expensive.
@jtoman
jtoman requested a review from shellygr July 28, 2026 16:24
jtoman added 3 commits July 28, 2026 19:05
Allows limited editing of the config:
* opting in to storage extension mechanisms
* using contract extension mechanisms
* adding/removing solidity source files

Also adds tools for the editor agent to compute keccak hashes itself.

Why include the config edit here? Well, without it, the code editor
"create a mock" doesn't work even a little bit, and we'll get thrashing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants